﻿using System;
using System.Runtime.Serialization;

namespace Conducido.BizTalkOppSvc.Services.Contracts.BtsTypes
{
    /// <summary>
    /// Describes a sendport in a BizTalk application.
    /// </summary>
    [DataContract(Namespace = "http://schemas.conducido.nl/BizTalkOpSuite/BtsOperationInfo/2012/01")]
    public class BtSendPort
    {
        [DataMember]
        public bool TwoWay { get; set; }

        [DataMember]
        public string TransportType { get; set; }

        [DataMember]
        public string Description { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Status { get; set; } //TODO: Change to PortStatus is biztalk

        [DataMember]
        public bool RouteFailed { get; set; }

        [DataMember]
        public string Pipeline { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string MapName { get; set; }

        [DataMember]
        public bool IsManaged { get; set; }

        [DataMember]
        public BtSendHandler Handler { get; set; }

        [DataMember]
        public Guid Guid { get; set; }

        [DataMember]
        public string Filter { get; set; }

        [DataMember]
        public DateTime DateModified { get; set; }

        [DataMember]
        public string ApplicationName { get; set; }

        [DataMember]
        public string Address { get; set; }
    }
}